import TabSelect from "./TabSelect.tsx";
import {TimeSelect} from "../../types.ts";

interface HeaderProps {
    src: string
    timeSelect:TimeSelect[]
    handleChangeTime: (time: TimeSelect) => void
}

function Header({src,timeSelect,handleChangeTime}: HeaderProps) {
    return (
        <>
            <header className="title">星座运势</header>
            <TabSelect handleChangeTime={handleChangeTime} timeSelect={timeSelect}/>
            <div className="icon-container">
                <img width="94" height="94" src={src} alt="capricorn"/>
            </div>
        </>
    )
}

export default Header;